package suites.logger {
	import org.flexunit.asserts.assertTrue;

	import flash.system.Capabilities;
	/**
	 * @author Max Kugland
	 */
	public class DebugPlayerTest {
		private function isDebugPlayerAndBuild() : Boolean {
			return Capabilities.isDebugger && new Error().getStackTrace().search(/:[0-9]+]$/m) > -1;
		}

		[Test (description="In order to test the logger package, you need to compile the tests in debug mode and run them in a debug player!")]
		public function beforeClass() : void {
			assertTrue(isDebugPlayerAndBuild());
		}
	}
}
